/* @(#)GSOrderManufactureVO.java    
 *
 * Project: GS
 *
 * Modify Information:
 * =============================================================================
 *   Author       Date       Description
 *   ------------ ---------- ---------------------------------------------------
 *   Jenny Li     2006-2-15    新增
 *
 * Copyright Notice:
 * =============================================================================
 *    Copyright (c) 2001-2006 Beijing HiTRUST Technology Co., Ltd. 1808 Room, 
 *        Science & Technology Building, No. 9 South Street, Zhong Guan Cun, 
 *        Haidian District, Beijing ,100081, China All rights reserved.
 *
 *    This software is the confidential and proprietary information of
 *        Beijing HiTRUST Technology Co., Ltd. ("Confidential Information").
 *        You shall not disclose such Confidential Information and shall use it
 *        only in accordance with the terms of the license agreement you entered
 *        into with HiTRUST.
 *
 * Warning:
 * =============================================================================
 * 
 */
package com.hitrust.gs.vo;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

/**
 * @author simonyi
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class GSOrderManufactureVO implements GSBaseBean{

    public String orderId;
    public String manufactureid ;
    public String manufactureName;
    public String concentricityId ;
    public double manufactureUnitPrice;
    public String ordercount;
    public String deliverdate;
    public String delivertime;
    public String deptid;
    public String orderDeptName;
    public String deliveraddr;
    public String linkman;
    public String linktel;
    public String delivermode;
    public String balancemode;
    public String providerName;
    
    //add for orderdetail submit
    public String orderDetailId;
    public String orderDetailNote;
    //add 2006-2-23
    public String orderDetailStatus;
    public String isTradeManuf;
    public String quantUnit;
    //add 2006-8-11
    public String providerId;
    //add 2006-12-06
    public String balanceCategory;
    //add 2008-09-08结算模式
    public String mode;
    
    public String applycode;//申请单号
    public Object process(ResultSet aResultSet) throws SQLException {
        
        GSOrderManufactureVO tGSOrderManufactureVO = new GSOrderManufactureVO();
        tGSOrderManufactureVO.manufactureid = aResultSet.getString("P1");
        tGSOrderManufactureVO.manufactureName = aResultSet.getString("P2") == null? "": aResultSet.getString("P2").trim();
        tGSOrderManufactureVO.manufactureUnitPrice = aResultSet.getDouble("P3");
        tGSOrderManufactureVO.ordercount = String.valueOf(aResultSet.getDouble("P4"));
        tGSOrderManufactureVO.deliverdate = aResultSet.getString("P5") == null? "" : aResultSet.getString("P5");
        tGSOrderManufactureVO.delivertime = aResultSet.getString("P6") == null? "" : aResultSet.getString("P6");
        tGSOrderManufactureVO.orderDeptName = aResultSet.getString("P7");
        tGSOrderManufactureVO.deliveraddr = aResultSet.getString("P8");
        tGSOrderManufactureVO.linkman = aResultSet.getString("P9") == null? "":aResultSet.getString("P9");
        tGSOrderManufactureVO.linktel = aResultSet.getString("P10") == null? "":aResultSet.getString("P10");
        tGSOrderManufactureVO.delivermode = aResultSet.getString("P11")==null?"":aResultSet.getString("P11");
        tGSOrderManufactureVO.balancemode = aResultSet.getString("P12")==null?"":aResultSet.getString("P12");
        tGSOrderManufactureVO.providerName = aResultSet.getString("P13");
        tGSOrderManufactureVO.orderId = aResultSet.getString("P14");
        //add for ordertail submit
        tGSOrderManufactureVO.orderDetailId = aResultSet.getString("P15")==null? "" : aResultSet.getString("P15");
        tGSOrderManufactureVO.orderDetailNote = aResultSet.getString("P16") == null? "":aResultSet.getString("P16");
    
        tGSOrderManufactureVO.orderDetailStatus = aResultSet.getString("P17") == null? "" :aResultSet.getString("P17").trim();
        tGSOrderManufactureVO.isTradeManuf = aResultSet.getString("P18");
        tGSOrderManufactureVO.quantUnit = aResultSet.getString("P19");
        tGSOrderManufactureVO.concentricityId = aResultSet.getString("P20");
        return tGSOrderManufactureVO;
    }
    
}
